<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport"
            content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <meta name="viewport" content="width=device-width"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="format-detection" content="telephone=no"/>
        <title>悟饭游戏厅—0流量、专业对战模拟器</title>
        <style>
            * {
            margin: 0;
            padding: 0;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            }

            html, body {
            position: relative;
            height: 100%;
            min-width: 320px; /*max-width:640px;*/
            margin: 0 auto;
            font: 14px/1.5 "Helvetica Neue", Helvetica, STHeiTi, "Microsoft Yahei", sans-serif;
            background-color: #fff;
            color: #333;
            }

            ul, ol, li {
            list-style: none;
            }

            img {
            max-width: 100%;
            }

            a {
            color: #fff;
            text-decoration: none;
            }

            a:hover {
            text-decoration: none;
            }

            #wrapper {
            position: relative;
            padding: 20px;
            }

            ul li {
            margin-bottom: 10px
            }

            ul li span {
            display: inline-block;
            width: 120px;
            text-align: right;
            }

            select, option, input {
            width: 100px;
            font-size: 14px;
            }

            .btn {
            width: 135px;
            padding: 5px 10px;
            margin: 0 auto 20px;
            background-color: #127612;
            color: #fff;
            text-align: center;
            border-radius: 6px
            }

            #shareOption {
            display: block;
            margin: 0 auto 5px;
            }

        </style>
    </head>
    <body style="overflow: auto">
        <div id="wrapper">
            <ul id="compose">
                <li><span>jump_link_type：</span><select name="jump_link_type">
                    <option value="0">0</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                    <option value="13">13</option>
                    <option value="14">14</option>
                    <option value="15">15</option>
                    <option value="16">16</option>
                    <option value="17">17</option>
                </select></li>
                <li><span>jump_type：</span><select name="jump_type">
                    <option value=""></option>
                    <option value="0">0</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                    <option value="13">13</option>
                    <option value="14">14</option>
                    <option value="30">30</option>
                    <option value="31">31</option>
                </select></li>
                <li><span>jump_link_type_val：</span><input type="text" placeholder="jump_link_type_val"
                    name="jump_link_type_val"/></li>
                <li><span>crc_link_type_val：</span><input type="text" placeholder="crc_link_type_val"
                    name="crc_link_type_val"/>
                </li>
                <li><span>jump_tpl_type：</span><select name="jump_tpl_type">
                    <option value=""></option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                </select></li>
                <li><span>object：</span><input type="text" placeholder="" name="object"/></li>
            </ul>
            <pre></pre>
            <div id="webjump" class="btn">web跳转客户端</div>

            <div id="login" class="btn">调用注册/登录(老版)</div>

            <select id="shareOption">
                <option value="0">0.微信</option>
                <option value="1">1.朋友圈</option>
                <option value="2">2.QQ</option>
                <option value="3">3.QQ空间</option>
                <option value="4">4.微博</option>
            </select>

            <div id="share" class="btn">分享平台</div>

            <div id="back" class="btn">返回到目标URL</div>
            <div id="getIMEI" class="btn">获取设备号</div>
            <div id="shareFromJson" class="btn">直接弹出分享</div>
            <div id="openAction" class="btn">打开活动打点</div>
            <div id="joinAction" class="btn">参加活动打点</div>
            <div id="showShareButn" class="btn">web显示分享按钮并设置分享内容</div>
            <div id="setTitle" class="btn">设置标题文字</div>
            <div id="startGame" class="btn">开始游戏</div>
            <div id="downloadGameByGameId" class="btn">下载拳皇97</div>
            <div id="inquiryGameStatus" class="btn">检查当前拳皇97的状态</div>
            <div id="goGameDetail" class="btn">拳皇97详情</div>
            <div id="showTitle" class="btn">web控制是否显示顶部栏</div>
            <div id="showTitlefalse" class="btn">web控制是否显示顶部栏隐藏</div>
            <div id="mobileType" class="btn">获取手机型号</div>
            <div id="systemVersion" class="btn">获取android 版本</div>
            <div id="appversion" class="btn">app版本号</div>
            <div id="getAppversionName" class="btn">app版本名</div>
            <div id="getVendor" class="btn">获取手机品牌</div>
            <div id="checkin" class="btn">设置签到成功</div>
            <div id="playVideo" class="btn">播放视屏</div>
            <div id="login2" class="btn">直接去登录</div>
            <div id="getAccountVer2" class="btn">获取用户数据包括游客</div>
            <div id="copyToClipboard" class="btn">文字复制到剪切板</div>
            <div id="intentToCompletAccount" class="btn">跳转完善资料</div>
            <div id="intentQQ" class="btn">跳转qq聊天1.7.1+</div>
            <div id="checkAppHasInstall" class="btn">检查app是否已安装1.7.1+</div>
            <div id="shareQQText" class="btn">分享文字到qq1.7.1+</div>
            <div id="shareQQImage" class="btn">分享图片到qq1.7.1+</div>
            <div id="shareWeiboText" class="btn">分享文字到微博1.7.1+</div>
            <div id="shareWeiboImage" class="btn">分享图片到微博1.7.1+</div>
            <div id="shareWechatText" class="btn">分享文字到微信1.7.1+</div>
            <div id="shareWechatImage" class="btn">分享图片到微信1.7.1+</div>
            <div id="shareWechatPlantformImage" class="btn">分享图片到微信朋友圈1.7.1+</div>
            <div id="shareWechatPlantformText" class="btn">分享文字到微信朋友圈1.7.1+</div>

            <input type="text" id="payMoney" value="1"/>
            <select id="payOption">
                <option value="0">1.默认可选择支付</option>
                <option value="1">1.支付宝支付</option>
                <option value="2">2.微信汇付宝支付</option>
                <option value="3">3.银联卡支付</option>
                <option value="4">4.信用卡支付</option>
                <option value="5">5.饭票支付</option>
                <option value="6">6.红包支付</option>
                <option value="7">7.微信紫薇兴</option>
                <option value="8">8.微信威富通</option>
            </select>
            <select id="payShowTypeOption">
                <option value="0">1.默认不显示饭票和红包</option>
                <option value="1">1.显示饭票</option>
                <option value="2">2.显示 红包</option>
                <option value="3">3.显示饭票和红包</option>
            </select>
            <div id="payByPapa" class="btn">网页支付</div>
            <select id="rechageOption">
                <option value="0">1.默认可选择充值</option>
                <option value="1">1.支付宝充值</option>
                <option value="2">2.微信汇付宝充值</option>
                <option value="3">3.银联卡充值</option>
                <option value="4">4.信用卡充值</option>
                <option value="7">7.微信紫薇兴</option>
                <option value="8">8.微信威富通</option>
            </select>
            <div id="rechargePabiFrom" class="btn">网页充值</div>
            <div id="showRefresh" class="btn">显示刷新</div>
            <div id="showDownload" class="btn">显示下载</div>
            <div id="showSearch" class="btn">显示搜索</div>
            <div id="hideRefresh" class="btn">隐藏刷新</div>
            <div id="hideDownload" class="btn">隐藏下载</div>
            <div id="hideSearch" class="btn">隐藏搜索</div>
            <div id="goAccountCenter" class="btn">跳转个人中心</div>
            <div id="goHandShark" class="btn">跳转手柄设置</div>
            <div id="goCodesBoxActivity" class="btn">跳转寸号箱</div>
            <div id="goDownloadCenter" class="btn">跳转下载中心</div>
            <div id="getPapaUIDAndToken" class="btn">获取账户uid和token</div>
            <div id="downloadFile" class="btn">第三方直接下载文件</div>
            <div>下面是1.8+</div>
            <div id="checkAppInfo" class="btn">查询app信西</div>
            <div id="showFinish" class="btn">关闭 是否显示</div>
            <div id="hideFinish" class="btn">关闭 不显示</div>
            <div id="showBackNew" class="btn">返回 是否显示</div>
            <div id="hidBackNew" class="btn">返回 不显示</div>
            <div id="toastText" class="btn">tost字符串</div>
            <div id="saveStringByKey" class="btn">保存字符串</div>
            <div id="getStringByKey" class="btn">获取字符串</div>
            <div id="getSdkIntentData" class="btn">读取sdk跳转携带来的数据appKey=20160127</div>
            <div id="getSdkIntentData2" class="btn">读取sdk跳转携带来的数据 这个优先</div>
            <div id="changeAccount" class="btn">切换账户</div>
            <div id="normal" class="btn">自动</div>
            <div id="land" class="btn">横屏</div>
            <div id="port" class="btn">竖屏</div>
            <div id="finish" class="btn">finish</div>
            <div id="upLoadImage" class="btn">上传图片</div>
            <div id="startGameFromJson" class="btn">开始游戏(恐龙快打)</div>
            <div id="intentMygame" class="btn">intentMygame</div>
            <input type="text" placeholder="url" id="urlIntent" value="https://www.baidu.com/"/>
            <div id="goUrl" class="btn">连接网络</div>
            <div id="showText">显示收到的下载状态</div>
            <button onclick="javascript:window.location.href='mqqwpa://im/chat?chat_type=wpa&uin=386847773&version=1'"
                value="click1">跳转qq另一方式
            </button>
            <button onclick="javascript:window.location.href='papaapp://intent.papa.app/openwith?link_type=3&jump_type=4&link_type_val=1&crc_link_type_val=1&tpl_type=1&object=1'"
                value="click1">跳转悟饭社区
            </button>
            <button onclick="javascript:window.location.href='yiqiwanapp://intent.yiqiwan.app/openwith'"
                value="click1">跳转一起玩
            </button>
            <div id="buyPabi" class="btn">购买饭票</div>

            <a href="http://newptdownload.5fun.com/112_3.4.2/papa_71d47bwufan_yunying_180112_3257_1_1125.apk" title=" ">下载</a>
        </div>
        <script>

            var webjump = document.querySelector('#webjump')
            , login = document.querySelector('#login')
            , share = document.querySelector('#share')
            , showText = document.querySelector('#showText')
            , back = document.querySelector('#back');
            var resultStr;

            var fields = document.querySelectorAll('#compose select, #compose, input');
            var pre = document.querySelector('pre');
            var result = {};

            fields = [].slice.call(fields);
            fields.forEach(function (item) {
            var key = item.getAttribute('name');
            result[key] = item.value;

            var method = item.nodeName.toLowerCase() === 'input' ? 'keyup' : 'change';
            item.addEventListener(method, function () {
            result[key] = item.value;
            pre.innerHTML = JSON.stringify(result, null, 2);
            resultStr = JSON.stringify(result);
            });
            });


            //1.从web跳转客户端特定界面
            webjump.addEventListener('click', function (e) {
            window.yiqiwan.startIntent(resultStr)
            });

            //2.验证登录和调用注册界面
            login.addEventListener('click', function (e) {
            window.yiqiwan.getAccount();
            });

            //3.分享到指定平台
            var shareJson =
            {

            "imageUrl": "http://ctimg.mg3721.com/upload/images/shareapp.png?ver=1.2",
            "title": "接口测试",
            "text": "接口测试",
            "weiboShareUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "qZoneShareUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "wechatShareUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "wechatFriendUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "qqUrl": "http://tuis.papa91.com/?aid=mQzzcG"
            }

            var shareJson2 =
            {
            "share":{
            "imageUrl": "http://ctimg.mg3721.com/upload/images/shareapp.png?ver=1.2",
            "title": "接口测试",
            "text": "接口测试",
            "weiboShareUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "qZoneShareUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "wechatShareUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "wechatFriendUrl": "http://tuis.papa91.com/?aid=mQzzcG",
            "qqUrl": "http://tuis.papa91.com/?aid=mQzzcG"
            }
            }
            var shareJsonStr = JSON.stringify(shareJson);
            var shareJsonStr2 = JSON.stringify(shareJson2);

            share.addEventListener('click', function (e) {
            var shareToabc = parseInt(document.getElementById('shareOption').value);
            window.yiqiwan.shareToOne(shareToabc, shareJsonStr);
            });

            //4.返回事件处理
            back.addEventListener('click', function (e) {
            window.yiqiwan.goBackUrl("http://m.papa91.com/");
            });
            //获取设备号
            getIMEI.addEventListener('click', function (e) {
            var v=window.yiqiwan.getIMEI();
            alert(v)
            });
            //分享
            shareFromJson.addEventListener('click', function (e) {
            window.yiqiwan.shareFromJson(shareJsonStr2);
            });
            //打开活动打点
            openAction.addEventListener('click', function (e) {
            window.yiqiwan.openAction("action","actionid");
            });
            //参加活动
            joinAction.addEventListener('click', function (e) {
            window.yiqiwan.joinAction("joinaction","joinactionid");
            });
            //b显示分享按钮并设置分享内容
            showShareButn.addEventListener('click', function (e) {
            window.yiqiwan.showShareButn(shareJsonStr2);
            });
            //设置标题文字
            setTitle.addEventListener('click', function (e) {
            window.yiqiwan.setTitle("标题文字");
            });

            //web开始游戏
            startGame.addEventListener('click', function (e) {
            window.yiqiwan.startGame("509474702","");
            });
            //下载游戏
            downloadGameByGameId.addEventListener('click', function (e) {
            window.yiqiwan.downloadGameByGameId('509474702');
            });
            //拳皇97的状态
            inquiryGameStatus.addEventListener('click', function (e) {
            var mm=   window.yiqiwan.inquiryGameStatus('509474702');
            alert(mm);
            });
            //拳皇97详情
            goGameDetail.addEventListener('click', function (e) {
            window.yiqiwan.goGameDetail('509474702');
            });
            //显示顶部栏
            showTitle.addEventListener('click', function (e) {
            window.yiqiwan.showTitle(true);
            });
            //显示顶部栏
            showTitlefalse.addEventListener('click', function (e) {
            window.yiqiwan.showTitle(false);
            });
            //获取手机型号
            mobileType.addEventListener('click', function (e) {
            var v= window.yiqiwan.getPhoneModle();
            alert(v)
            });
            //获取android 版本
            systemVersion.addEventListener('click', function (e) {
            var v=window.yiqiwan.getAndroidVersion();
            alert(v)
            });
            //当前版本号
            appversion.addEventListener('click', function (e) {
            var v=   window.yiqiwan.getNowVersion();
            alert(v)
            }); //当前版本号
            getAppversionName.addEventListener('click', function (e) {
            var v=   window.yiqiwan.getAppversionName();
            alert(v)
            }); //当前版本号
            getVendor.addEventListener('click', function (e) {
            var v=   window.yiqiwan.getVendor();
            alert(v)
            });
            //签到成功与否
            checkin.addEventListener('click', function (e) {
            window.yiqiwan.checkin(true);
            });
            //播放视频
            playVideo.addEventListener('click', function (e) {
            var v= papa.playVideo("http://7xokg4.com2.z0.glb.qiniucdn.com/video/fbyx.mp4","http://192.168.78.5:9007/static/uploads/images/cf/bb/cfbb13d19c2c2d79c9608d5f1e934ba9.gif");
            });
            //下载消息



            //登录
            login2.addEventListener('click', function (e) {
            window.yiqiwan.login();
            });
            //获取用户数据不登录
            getAccountVer2.addEventListener('click', function (e) {
            var v=   window.yiqiwan.getAccountVer2();
            alert(v)
            });
            //获取用户数据不登录
            copyToClipboard.addEventListener('click', function (e) {
            window.yiqiwan.copyToClipboard('我是复制 得到的文字');

            });
            //跳转完善资料
            intentToCompletAccount.addEventListener('click', function (e) {
            window.yiqiwan.intentToCompletAccount();

            });//跳转qq聊天
            intentQQ.addEventListener('click', function (e) {
            window.yiqiwan.intentQQ("386847773");
            });
            //检查app是否已安装
            checkAppHasInstall.addEventListener('click', function (e) {
            var hasInstall=  window.yiqiwan.checkAppHasInstall('com.join.android.app.mgsim');
            alert(hasInstall);
            });


            //跳转完善资料
            shareQQText.addEventListener('click', function (e) {
            var v='分享到qq';
            window.yiqiwan.shareToOneImageOrText(2, v,1);
            });//跳转完善资料
            shareWeiboText.addEventListener('click', function (e) {
            var v='分享到qq';
            window.yiqiwan.shareToOneImageOrText(4, v,1);
            });//跳转完善资料
            shareWechatText.addEventListener('click', function (e) {
            var v='分享到qq';
            window.yiqiwan.shareToOneImageOrText(0, v,1);
            });//跳转完善资料
            shareWechatPlantformText.addEventListener('click', function (e) {
            var v='分享到qq';
            window.yiqiwan.shareToOneImageOrText(1, v,1);
            });
            //跳转完善资料
            shareQQImage.addEventListener('click', function (e) {
            var v='http://e.hiphotos.baidu.com/news/crop%3D0%2C103%2C1024%2C614%3Bw%3D638/sign=00ffe0b7d188d43fe4e6cbb2402efe2a/30adcbef76094b3650535c2fa4cc7cd98c109d2b.jpg';
            window.yiqiwan.shareToOneImageOrText(2, v,2);
            });//跳转完善资料
            shareWeiboImage.addEventListener('click', function (e) {
            var v='http://e.hiphotos.baidu.com/news/crop%3D0%2C103%2C1024%2C614%3Bw%3D638/sign=00ffe0b7d188d43fe4e6cbb2402efe2a/30adcbef76094b3650535c2fa4cc7cd98c109d2b.jpg';
            window.yiqiwan.shareToOneImageOrText(4, v,2);
            });//跳转完善资料
            shareWechatImage.addEventListener('click', function (e) {
            var v='http://e.hiphotos.baidu.com/news/crop%3D0%2C103%2C1024%2C614%3Bw%3D638/sign=00ffe0b7d188d43fe4e6cbb2402efe2a/30adcbef76094b3650535c2fa4cc7cd98c109d2b.jpg';
            window.yiqiwan.shareToOneImageOrText(0, v,2);
            });//跳转完善资料
            shareWechatPlantformImage.addEventListener('click', function (e) {
            var v='http://e.hiphotos.baidu.com/news/crop%3D0%2C103%2C1024%2C614%3Bw%3D638/sign=00ffe0b7d188d43fe4e6cbb2402efe2a/30adcbef76094b3650535c2fa4cc7cd98c109d2b.jpg';
            window.yiqiwan.shareToOneImageOrText(1, v,2);
            });
            //final String  app_key,final int  payType,final String callback_url,final String app_name,final String app_order_id,final int paOpenuid,final String uid,
            //                            final String app_user_name,final String product_id,final String product_name,final String pay_rmb,final String extra1,final String extra2
            //支付
            payByPapa.addEventListener('click', function (e) {
            var shareToabc = parseInt(document.getElementById('payOption').value);
            var payShowTypeOption = parseInt(document.getElementById('payShowTypeOption').value);
            var string=  window.yiqiwan.getPapaUIDAndToken();
            var json = JSON.parse(string);
            var paOpenuid=json.paOpenuid.toString();
            var token=json.token;
            var  app_key='20160127';
            var  appPrivateKey='720b1254d80d89e3';
            var  payType=shareToabc;
            var callback_url='http://sdkapi.papa91.com/pay/pay_callback/test';
            var app_name='游戏名';
            var app_order_id='1234567890';
            var uid='666';
            var product_id='777';
            var product_name='商品名字消费';
            var pay_rmb=document.getElementById("payMoney").value;
            //var pay_rmb='2';
            var extra1='extra1';
            var  extra2='extra2';
            window.yiqiwan.payByPapa(app_key,appPrivateKey,payType,callback_url,app_name,app_order_id,paOpenuid,uid,
            product_id,product_name,pay_rmb,extra1,extra2,token,payShowTypeOption);
            });
            //充值
            rechargePabiFrom.addEventListener('click', function (e) {
            var shareToabc = parseInt(document.getElementById('rechageOption').value);
            var string=  window.yiqiwan.getPapaUIDAndToken();
            var json = JSON.parse(string);
            var paOpenuid=json.paOpenuid.toString();
            var token=json.token;

            //var paOpenuid='2224443';
            //var token=json.token;

            var  app_key='20160127';
            var  appPrivateKey='720b1254d80d89e3';
            var  payType=shareToabc;
            var callback_url='http://sdkapi.papa91.com/pay/callback/test';
            var app_name='游戏名';
            var app_order_id='10001';
            var uid='6666';
            var product_id='10002';
            var product_name='商品名字充值饭票';
            var pay_rmb=document.getElementById("payMoney").value;
            //var pay_rmb='2';
            var extra1='extra1';
            var  extra2='extra2';
            var  extra2='extra2';
            window.yiqiwan.rechargePabiFrom(app_key,payType,callback_url,app_name,app_order_id,paOpenuid,uid,
            product_id,product_name,pay_rmb,extra1,extra2);
            });

            showRefresh.addEventListener('click', function (e) {
            var b=true;
            window.yiqiwan.showRefresh(b);
            });
            showDownload.addEventListener('click', function (e) {
            var b=true;
            window.yiqiwan.showDownload(b);
            });
            showSearch.addEventListener('click', function (e) {
            var b=true;
            window.yiqiwan.showSearch(b);
            });
            hideRefresh.addEventListener('click', function (e) {
            var b=false;
            window.yiqiwan.showRefresh(b);
            });
            hideDownload.addEventListener('click', function (e) {
            var b=false;
            window.yiqiwan.showDownload(b);
            });
            hideSearch.addEventListener('click', function (e) {
            var b=false;
            window.yiqiwan.showSearch(b);
            });
            goAccountCenter.addEventListener('click', function (e) {
            window.yiqiwan.goAccountCenter();
            });
            goHandShark.addEventListener('click', function (e) {
            window.yiqiwan.goHandShark();
            });
            goCodesBoxActivity.addEventListener('click', function (e) {
            window.yiqiwan.goCodesBoxActivity();
            });
            goDownloadCenter.addEventListener('click', function (e) {
            window.yiqiwan.goDownloadCenter();
            });
            getPapaUIDAndToken.addEventListener('click', function (e) {
            var string=  window.yiqiwan.getPapaUIDAndToken();
            alert(string);
            });
            downloadFile.addEventListener('click', function (e) {
            var string=  window.yiqiwan.downloadFile('http://w.gdown.baidu.com/data/wisegame/952c6e9fcf9f1d5d/papayouxiting_44.apk?f=m1101','下载文件名字');

            });
            checkAppInfo.addEventListener('click', function (e) {
            var string=  window.yiqiwan.checkAppInfo('com.join.android.app.mgsim');
            alert(string);
            });
            showFinish.addEventListener('click', function (e) {
            window.yiqiwan.showFinish(true);

            });
            hideFinish.addEventListener('click', function (e) {
            window.yiqiwan.showFinish(false);

            });
            showBackNew.addEventListener('click', function (e) {
            window.yiqiwan.showBackNew(true);

            });
            hidBackNew.addEventListener('click', function (e) {
            window.yiqiwan.showBackNew(false);

            });
            toastText.addEventListener('click', function (e) {
            window.yiqiwan.toastText('我是tost的字符串');
            });
            saveStringByKey.addEventListener('click', function (e) {
            window.yiqiwan.saveStringByKey('key','我是保存的字符串');
            alert('保存成功');
            });
            getStringByKey.addEventListener('click', function (e) {
            var d=  window.yiqiwan.getStringByKey('key');
            alert(d);
            });
            getSdkIntentData.addEventListener('click', function (e) {
            var d=  window.yiqiwan.getSdkIntentData('20160127');
            alert(d);
            });
            getSdkIntentData2.addEventListener('click', function (e) {
            var d=  window.yiqiwan.getSdkIntentData();
            alert(d);
            });
            changeAccount.addEventListener('click', function (e) {
            var json='';
            window.yiqiwan.changeAccount(json);
            });

            normal.addEventListener('click', function (e) {
            window.yiqiwan.setScreenLandOrPort(0);
            });

            land.addEventListener('click', function (e) {
            window.yiqiwan.setScreenLandOrPort(1);
            });
            port.addEventListener('click', function (e) {
            window.yiqiwan.setScreenLandOrPort(2);
            });
            finish.addEventListener('click', function (e) {
            window.yiqiwan.goBackUrl("");
            });

            upLoadImage.addEventListener('click', function (e) {
            window.yiqiwan.goChoiceUploadImage();
            });

            startGameFromJson.addEventListener('click', function (e) {
            var vv='{"activityName":"com.papa91.arc.EmuActivity","cheat":1,"fastIP":"183.131.211.100","gameID":"3913852899","gamePlayers":0,"groupId":0,"netMode":0,"netPlayers":0,"oldGame":0,"pa_package_name":"com.join.android.app.mgsim","packageName":"com.papa91.arc","plugin_area_val":13,"porder":0,"romPath":"/storage/emulated/0/wufan91/31/roms/dino/dino","roomSilent":1,"sVipLevel":0,"serverIP":"192.168.78.31","serverPort":"16109","sp":1,"startMode":9,"tcptype":0,"token":"qiDh2gdx9J9eIyJv","type":31,"udpport":0,"userID":"4381038","version":15,"vipLevel":0,"vip_expire_time":0}';
            window.yiqiwan.startGameFromJson(vv);
            });



            mobileType.addEventListener('click', function (e) {
            var v= window.yiqiwan.getPhoneModle();
            alert(v)
            });
            intentMygame.addEventListener('click', function (e) {
            var  json={"link_type":3,"jump_type":6,"link_type_val":"","crc_link_type_val":"","tpl_type":"","object":""};
            var jj=  JSON.stringify(json);
            var v= window.yiqiwan.startIntent(jj);

            });

            goUrl.addEventListener('click', function (e) {
            //var v= papa.playVideo('http://7xokg4.com2.z0.glb.qiniucdn.com/video/fbyx.mp4','http://192.168.78.5:9007/static/uploads/images/cf/bb/cfbb13d19c2c2d79c9608d5f1e934ba9.gif');
            var url=document.getElementById("urlIntent").value;

            //alert(url);
            papa.goBackUrl(url);
            });

            var showText= document.getElementById('showText');
            function papaGameStatusNotify( gameID, status){
            var ss=gameID+' lalala   '+status;
            showText.innerHTML(ss);
            }
            function papaPayResult(statues){
            alert(statues);
            var sss=statues;
            showText.innerHTML(sss);
            }
            buyPabi.addEventListener('click', function (e) {

            var  app_key='qh97';
            var  payType=0;
            var callback_url='http://sdkapi.papa91.com/pay/callback/test';
            var app_name='悟饭充值';
            var app_order_id='10001';
            var string=  window.yiqiwan.getPapaUIDAndToken();
            var json = JSON.parse(string);
            var paOpenuid=json.paOpenuid;
            var uid='6666';
            var product_id='10002';
            var product_name='充值饭票';
            var pay_rmb='1';
            var extra1='extra1';
            var  extra2='extra2';
            window.yiqiwan.payByPapa(app_key,payType,callback_url,app_name,app_order_id,paOpenuid,uid,
            product_id,product_name,pay_rmb,extra1,extra2);

            });

            function papaBackPageUp(){
            goBackUrl("");
            }




        </script>

    </body>
</html>